import { PORT3 } from '@/api/config/servicePort'
import http from '@/api'

export const getserialnumber = () => {
  return http.get(PORT3 + `/api/information/get_serial_number`)
}

export const saveconfigtodb = (params: any) => {
  return http.post(PORT3 + `/api/information`, params)
}

export const upconfigtodb = (params: { id: number }) => {
  return http.put(PORT3 + `/api/information/` + params.id, params)
}

export const getallproject = () => {
  return http.get(PORT3 + `/api/information?all_data=true`)
}
